package com.ruoyi.management.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.core.domain.Entity;

/**
 * 佣金管理对象 mg_commission_management
 *
 * @author ruoyi
 * @date 2024-01-17
 */
public class CommissionManagement extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /** 佣金 id  */
    private Integer id;

    /** 用户 id */
    @Excel(name = "用户 id")
    private Integer userId;

    /** 用户姓名（冗余） */
    @Excel(name = "用户姓名")
    private String userName;

    /** 可提现金额 */
    @Excel(name = "可提现金额")
    private BigDecimal withdrawableAmount;

    /** 冻结金额 */
    @Excel(name = "冻结金额")
    private BigDecimal freezeAmount;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalAmount;

    /** 推荐人数 */
    @Excel(name = "推荐人数")
    private Integer recommenNum;

    @Excel(name = "更新时间")
    private Long updateTime;

    private int[] ids;
    
    private Long startTime;
    
    private Long endTime;
    
    

    public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setWithdrawableAmount(BigDecimal withdrawableAmount)
    {
        this.withdrawableAmount = withdrawableAmount;
    }

    public BigDecimal getWithdrawableAmount()
    {
        return withdrawableAmount;
    }
    public void setFreezeAmount(BigDecimal freezeAmount)
    {
        this.freezeAmount = freezeAmount;
    }

    public BigDecimal getFreezeAmount()
    {
        return freezeAmount;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setRecommenNum(Integer recommenNum)
    {
        this.recommenNum = recommenNum;
    }

    public Integer getRecommenNum()
    {
        return recommenNum;
    }

    @Override
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("withdrawableAmount", getWithdrawableAmount())
            .append("freezeAmount", getFreezeAmount())
            .append("totalAmount", getTotalAmount())
            .append("recommenNum", getRecommenNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

	public int[] getIds() {
		return ids;
	}

	public void setIds(int[] ids) {
		this.ids = ids;
	}
}
